package cn.wzvtc.miniserver;


import java.util.List;

public class UserService {

    private UserDao userDao;

    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }

    public List<User> findAll() {
        return userDao.findAll();
    }

    public User insert(User user) {
        return userDao.save(user);
    }

}
